package com.face.common;

public enum ResultCode {

    SUCCESS("100", "成功"),
    CREATED("101", "创建成功"),
    UPLOAD_IMAGE_SUCCESS("102", "上传图片成功"),
    CREATE_FAIL("200", "创建失败"),
    UPLOAD_IMAGE_FAIL("201", "上传图片失败"),
    NO_RECORDS("301", "查不到记录"),
    QUERY_SUCCESS("302", "查询成功"),
    NO_USER_RECORD("303", "查不到用户"),
    NO_ACCOUNT("304", "查无此帐号"),
    NO_REMARK_RECORD("305", "查不到备注记录"),
    NO_SHOP_RECORD("306", "查不到备注记录"),
    ACCOUNT_EXIST("307", "用户名已存在"),
    EMAIL_EXIST("308", "邮箱已存在"),
    USERNAME_OR_PASSWORD_ERROR("309", "账号或密码错误"),
    LINK_FAILURE("310", "链接失效"),
    OLDPASSWORD_ERROR("311", "旧密码错误"),
    ROLE_EXIST("312", "该角色已存在"),
    WECHAT_ACCOUNT_EXIST("313", "微信已绑定"),
    ACCOUNT_ACTIVEED("314", "账号已激活，请登录。"),
    USER_EXISTS_UNDER_THIS_ROLE("315", "该角色下存在账号，请先删除。"),
    BAD_PARAMETER("401", "参数不对"),
    NOT_ENOUGH_PARAMETER("402", "缺少参数"),
    UNANTH("403", "未登录"),
    UNACTIVE("404", "账号未激活"),
    ACCOUNT_RESTED("405", "账号已停用"),
    UPDATE_SUCCESS("500", "更新成功"),
    UPDATE_USER_FAIL("501", "更新用户信息失败"),
    PERMISSION_DENIED("502", "账号权限不足"),
    NO_CUSTOMER_RECORD("503", "查不到顾客");
    private String code;
    private String message;

    ResultCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}
